package io.github.chutian0610.sqlparser

data class Location(
    /** Line number, starting from 1 */
    val line: Long,
    /** Line column, starting from 1 */
    val column: Long
) {
    override fun toString(): String = "Line:$line,Column:$column"
    fun toSection(end: Location): Section = Section(this, end)

    companion object {
        fun empty(): Location = Location(0, 0)
    }
}
